#include "CBaseApp.h"
#include "CFramework.h"
#include "stdafx.h"


CBaseApp::CBaseApp(void)
{
}

CBaseApp::~CBaseApp(void)
{
}

/**********************************************************************************
Summary: Initialize specific resources dealing with this game application
Returns: true / false
***********************************************************************************/
BOOL CBaseApp::Initialize(void)
{
	return TRUE;
}

void CBaseApp::SetFramework( CFramework* pFramework )
{
    m_pFramework = pFramework;
}

int WINAPI wWinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance, LPWSTR lpCmdLine, int nCmdShow )
{
	UNREFERENCED_PARAMETER( hPrevInstance );
    UNREFERENCED_PARAMETER( lpCmdLine );

	CBaseApp* pApplication = new CBaseApp();
	CFramework* pFramework = new CFramework( pApplication );

	pApplication->SetFramework ( pFramework );

	//Initialize application specific resources
	if ( !pApplication->Initialize() )
	{
		return 0;
	}

	if ( !pFramework->Initialize ( "Zneic", hInstance, 640, 480, TRUE ) )
	{
		return 0;
	}

}